[XEN][POWERPC] The VIO rewrite
authorJimi Xenidis <jimix@watson.ibm.com>
Fri, 3 Nov 2006 21:53:17 +0000 (16:53 -0500)
committerJimi Xenidis <jimix@watson.ibm.com>
Fri, 3 Nov 2006 21:53:17 +0000 (16:53 -0500)
commit25551d9192f5192531ab7ef2d7ced7c01bfde415
treea818165c5b0d3e29cd4614472fcdcd34c61803bf
parenta1273ec5dd4965f076214a3f0d42e4c0c86c231d
[XEN][POWERPC] The VIO rewrite
Once you figure it all out, its time to do a rewrite, lots of code I
thougth I needed is now removed and less PPC specific code now exists.
This patch uses the MEMORY_HOTPLUG system to add a region to the
Kernel Linear Mapping that will be used exclusively to map in
Granted/Foreign pages.  This creates "struct page" objects in Linux
which are necessary to perform VIO operations.  When one of these
pages are grant_mapped the pfn2mfn() translation in Xen is updated to
reflect the association and the subsequent H_ENTER() from the domain
will contain the correct mapping.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
xen/arch/powerpc/domain.c
xen/arch/powerpc/mm.c
xen/arch/powerpc/ofd_fixup.c
xen/include/asm-powerpc/domain.h
xen/include/asm-powerpc/grant_table.h